<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/13
  Time: 15:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        Context context=new InitialContext();
        String testjndi = (String) context.lookup("java:comp/env/tjndi");
        out.print("JNDI: " + testjndi);

    %>
</body>
</html>
